package org.senseframework.support.orm.hibernate.query;

import org.senseframework.support.core.dto.PageData;

import java.util.List;

/**
 * User: lanjian
 * Email:lanjian@i5c6c.com
 * Version:1.0
 */
public interface IQueryBuilder<T> {

    List list();

    T page(Integer page);

    T size(Integer pageSize);

    Integer count();

    PageData nowPage();

    IQueryBuilder limit(boolean limit);

    <T> T one();

    Integer maxPage();

}
